package com.zhs.type;

public class Variable {

	private String varName;
	private String typeName;
	private Object value;

	public String getVarName() {
		return varName;
	}

	public String getTypeName() {
		return typeName;
	}

	public Object getValue() {
		return value;
	}

	public void setVarName(String id) {
		this.varName = id;
	}

	public void setTypeName(String type) {
		this.typeName = type;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public boolean equals(Object o) {
		if (o == null) {
			return false;
		} else if (!(o instanceof Variable)) {
			return false;
		} else if (((Variable) o).varName.equals(this.varName)) {
			return true;
		}
		return false;
	}
}
